package edu.ynu.se.xiecheng.achitectureclass.service;

public class SensorDataResponse {
    private String id;
    private String name;
    private double value;


    // 无参构造方法
    public SensorDataResponse() {}

    // Constructors
    public SensorDataResponse(String id, String name, double value) {
        this.id = id;
        this.name = name;
        this.value = value;
    }

    // Getters and setters
    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public double getValue() {
        return value;
    }

    public void setValue(double value) {
        this.value = value;
    }

    // Override toString, equals, hashCode if needed
}
